package com.An.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @auther AnYang
 * @date 2022/3/15 23:29
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("stu_user")
public class StudentUser {
	@TableId(value = "sno", type = IdType.AUTO)
	public Integer sno;
	public String sname;
	public String password;
	public String userid;

	@Override
	public String toString() {
		return "用户信息{" +
				"学号：" + sno +
				", 学生姓名：'" + sname + '\'' +
				", 密码：'" + password + '\'' +
				", 账号：'" + userid + '\'' +
				'}';
	}
}